# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
pkgname=ttf-cantarell
pkgver=0.201
pkgrel=1
pkgdesc="Humanist sans-serif font designed for on-screen reading"
url="https://wiki.gnome.org/Projects/CantarellFonts"
arch="noarch"
license="OFL-1.1 AND Apache-2.0"
makedepends="meson gettext-dev"
source="https://download.gnome.org/sources/cantarell-fonts/$pkgver/cantarell-fonts-$pkgver.tar.xz"
builddir="$srcdir/cantarell-fonts-$pkgver"

# it's just data, no testsuites
options="!check"

build() {
	meson \
		--buildtype=plain \
		--prefix=/usr \
		. build
	ninja -C build
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}

sha512sums="c512244a1ed343b1b9fef3a630c1c678c6ef7f06efcda883af0dbab5478823f31c9bd5fc38b92ad1747704528c6e2589584ab94743f433957644d5386dabdc98  cantarell-fonts-0.201.tar.xz"
